# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Docs.V1.Model.UpdateTableRowStyleRequest do
  @moduledoc """
  Updates the TableRowStyle of rows in a table.

  ## Attributes

  *   `fields` (*type:* `String.t`, *default:* `nil`) - The fields that should be updated. At least one field must be specified. The root `tableRowStyle` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update the minimum row height, set `fields` to `"min_row_height"`.
  *   `rowIndices` (*type:* `list(integer())`, *default:* `nil`) - The list of zero-based row indices whose style should be updated. If no indices are specified, all rows will be updated.
  *   `tableRowStyle` (*type:* `GoogleApi.Docs.V1.Model.TableRowStyle.t`, *default:* `nil`) - The styles to be set on the rows.
  *   `tableStartLocation` (*type:* `GoogleApi.Docs.V1.Model.Location.t`, *default:* `nil`) - The location where the table starts in the document.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :fields => String.t() | nil,
          :rowIndices => list(integer()) | nil,
          :tableRowStyle => GoogleApi.Docs.V1.Model.TableRowStyle.t() | nil,
          :tableStartLocation => GoogleApi.Docs.V1.Model.Location.t() | nil
        }

  field(:fields)
  field(:rowIndices, type: :list)
  field(:tableRowStyle, as: GoogleApi.Docs.V1.Model.TableRowStyle)
  field(:tableStartLocation, as: GoogleApi.Docs.V1.Model.Location)
end

defimpl Poison.Decoder, for: GoogleApi.Docs.V1.Model.UpdateTableRowStyleRequest do
  def decode(value, options) do
    GoogleApi.Docs.V1.Model.UpdateTableRowStyleRequest.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Docs.V1.Model.UpdateTableRowStyleRequest do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
